<template>
  <div class="a-header">
    <div class="logo">
      <img class="logo-img" src="../assets/logo.png" alt="logo">
      <span class="logo-text">一拼通</span>
    </div>
    <div class="ads"></div>
    <div class="uinfo">
      <span class="my-item">我发布的信息</span>
      <span class="my-item">我申请的信息</span>
      <img class="avatar" src="../assets/avatar.jpg" alt="avatar">
    </div>
  </div>
</template>

<script lang="ts">
  import {Component, Vue} from "vue-property-decorator";

  @Component({
    components: {}
  })
  export default class AHeader extends Vue {

  }
</script>

<style lang="scss" scoped>
  .a-header{
    height: 100%;
    display: flex;
    justify-content: space-between;
    .uinfo{
      padding: 0 10px;
      display: flex;
      align-items: center;
      & > * {
        cursor: pointer;
      }
      .my-item{
        color: #337ab7;
        & + .my-item {
          margin-left: 10px;
        }
      }
      .avatar{
        margin-left: 10px;
        width: 40px;
        height: 40px;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        border-radius: 50%;
      }
    }
    .ads{

    }
    .logo{
      width: 160px;
      height: 100%;
      background: #344C67;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      .logo-img{
        width: 30px;
        height: 30px;
        margin-right: 10px;
      }
      .logo-text{
        font-size: 20px;
        font-weight: bolder;
        color: white;
      }
    }
  }
</style>
